#include <main.h>

extern int tester_key_with_led_beep(int argc, char * argv[]);
extern int tester_clk(void);

static void do_system_initial(void)
{
	malloc_init();

	s5pv210_clk_initial();
	s5pv210_irq_initial();
	s5pv210_tick_initial();
	s5pv210_tick_delay_initial();
	s5pv210_serial_initial();
	s5pv210_fb_initial();

	led_initial();
	beep_initial();
	key_initial();
	
	serial_printf(0, "\r\nSystem initial, start !\r\n");
}

int main(int argc, char * argv[])
{
	do_system_initial();
    tester_clk();

	tester_key_with_led_beep(argc, argv);
	return 0;
}
